/**
 * 
 */
package com.lvan.bean;

import java.io.Serializable;

/**
 * @author Stern He<br>
 * 2013-9-26<br>
 * @version 1.0.0.0 
 */
public class Page implements Serializable{
    private static final long serialVersionUID = 2926971503063251691L;
    private Integer start;
    private Integer end;
    private Integer curPage;
    private Integer total;
    private Integer pageSize;
    public Integer getStart() {
    	if(pageSize!=null&&start==null) {
    		start = 0;
    	}
        return start;
    }
    public void setStart(Integer start) {
        this.start = start;
    }
    public Integer getEnd() {
        return end;
    }
    public void setEnd(Integer end) {
        this.end = end;
    }
    public Integer getCurPage() {
        return curPage;
    }
    public void setCurPage(Integer curPage) {
        this.curPage = curPage;
    }
    public Integer getTotal() {
        return total;
    }
    public void setTotal(Integer total) {
        this.total = total;
    }
    public Integer getPageSize() {
        return pageSize;
    }
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
    public String getPageSql() {
    	if(start!=null && pageSize!=null)
			return " limit "+ start +","+pageSize;
    	return null;
    }
}
